const { createProxyMiddleware } = require('http-proxy-middleware')
module.exports = function (app) {
    app.use(
        createProxyMiddleware("/jian", {
            target: "http://www.jianshu.com/asimov",
            changeOrign: true,
            ws: true,
            pathRewrite: { "^/jian": "" }
        })
    );

}